home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-06-15 | 3.7 KB | 105 lines | [TEXT/MPS ] |
- D. Jay Newman
- dn5@psuvm.psu.edu
-
-
- Hi:
-
- This is about my Cookie DA. It is basically the best Fortune Cookie
- of any type available for the Mac (I say this even though I wrote it,
- because I am a modest sort of guy). It is fast, and runs on all Mac's
- I've tested it on. It also includes a 600k Fortune file.
-
- Features:
-
- Its a DA, so can be called from an App if you feel in the need of wasting
- a few seconds.
-
- A large fortune file, gathered from the net (and other places). I would
- like to thank Henry Cate III, because I got some of my short quotes from
- his postings, and I would also like to thank many other people, too numerous
- to name.
-
- The window is resizable, and the fortunes will re-wrap to conform to the
- size of the window. Most of them look good this way. Some of them
- (mainly signitures taken from the net) are designed for a fixed size
- window, and look bad if the window is made smaller -- I put hard returns
- in these signitures because that was how they were originally).
-
- The DA remembers where your window was, and how big it was between invocations.
- Disclaimer: it works fine at home between restarts, but falls to its default
- size and position after a restart on the Mac IIcx's here. I WILL fix this,
- but couldn't find MPW Pascal here to do this! It also looks ugly the first
- time it is called from System 7; I will fix this also.
-
- Installation:
-
- Install the DA, and put the Fortunes file in the System Folder. Bad things
- may happen if it can't find its Fortunes file. The name is hard-coded :-(.
-
- Things for you to do:
-
- If you have MPW, you can add new fortunes, and correct my spelling mistakes!
- Merely edit the file Fortunes.Raw, and then rebake the cookies. The MPW tool
- (Bake), complete with source code, is provided for your pleasure. The
- correct command line is:
-
- Bake Fortunes.Raw Fortunes
-
- Then move the new fortunes file into the system folder. There is a bug in
- the Bake tool that improperly creates the new file if an old Fortunes file
- exists, so I always delete the old one before baking a new one. I may have
- fixed the bug, but I don't remember.
-
-
- Format of Fortunes.Raw
-
- The Bake tool removes hard returns inside cookies if the start of the next
- line starts with an alpha character (possiblly alpha-numeric). There are
- a few special characters accepted to change this behavior. These must be
- on lines of their own, with NO extra characters!
-
- %% End of cookie
- $$ Leave a single blank line here (put 2 hard returns here)
- !! Put a hard return here
-
-
- HyperCard:
-
- I have also included a HyperCard XCMD and stack which can understand the
- format of my cookie file, and will read a file. It took about 20 minutes
- on a Mac II when my file was about 2/3 the present size to create this
- stack. It is the only way of looking at ALL the cookies without MPW.
-
- Unfortunately I stopped there. I haven't written an XCMD to create a new
- fortune file from a HyperCard stack. It shouldn't be too hard, I just
- haven't had time to do such a thing.
-
-
- Format of a Fortunes file:
-
- <longint> Number of Cookies
- <longints> A number of longints equal to the number of cookies + 1
- These are offsets from the start of the cookie data of
- the start of each cookie. The extra one is there to
- be able to calculate the length of the last cookie.
- <text> Just plain text, with no delimiters
-
-
-
- How to contact me:
-
- I am D. Jay Newman, and I can be reached on the net by
- dn5 @ psuvm.psu.edu
-
- I can also be reached by snail mail at
- D. Jay Newman
- CBEL
- 12 Willard Building
- University Park, PA 16802
-
- Thanks for reading this, and if you have any fixes, please let me know.
-
- I release this document, and all the source code for my Cookie DA, the Bake
- Tool, and the CookieEdit HyperCard XCMD to the public domain.
-
- D. Jay Newman